import React,{ Component } from 'react';
import './visible.scss';
//引入蚂蚁antd
import {Modal} from 'antd';
class Visible extends Component {
        //设置初始值
        constructor(){
            super();
            this.state = {
                visible:false,
            }
        }

       
        
          handleOk = (e) => {
            console.log(e);
            this.setState({
              visible: false,
            });
          }
        
          handleCancel = (e) => {
            console.log(e);
            this.setState({
              visible: false,
            });
          }

  render() {
    return (
      <div className="Visible">      
        
        <Modal
         
          visible={this.state.visible}
          onOk={this.handleOk}
          onCancel={this.handleCancel}
          footer={null}
        >
          <img src='https://image.watsons.com.cn//upload/6db00343.png' alt="dd"/>
        </Modal>
     
      </div>
    );
  }
}

export default Visible;

